package com.lida.jdservice.controller;


import com.lida.commonuntils.R;
import com.lida.jdservice.entity.PersonalLoanDescription;
import com.lida.jdservice.service.PersonalLoanDescriptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 备注 前端控制器
 * </p>
 *
 * @author LiDa
 * @since 2022-02-01
 */
@RestController
@RequestMapping("/jdservice/loandescription")
@CrossOrigin
public class PersonalLoanDescriptionController {

    @Autowired
    private PersonalLoanDescriptionService LoanDescription;
    @GetMapping("getDescription/{id}")
    public R getDescription(@PathVariable String id){
        PersonalLoanDescription description= LoanDescription.getById(id);
        String str=description.getDescription();
        return R.success().data("description",str);
    }
}

